﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;

namespace WCFserviceApp_DiaDiem
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService_diadiem" in both code and config file together.
    [ServiceContract]
    public interface IService_diadiem
    {
        //[OperationContract]
        //void ThietlapKetnoi();
        //[OperationContract]
        //void HuyKetnoi();

        //[OperationContract]
        //DataTable TaoBang(string sql);
        [OperationContract]
        void ExcuteNonQuery(string sql);

        //Thêm thông tin
        [OperationContract]
        string ThemThongTin(int Maphanloai, string Ten, string Diachi, string Quan, string Thanhpho, string Lng, string Lat, string Lienlac, string Avatar, string Hinhanh, int Trangthai);


    }
    //Thuộc tính
    [DataContract]
    public class Thongtindiadiem
    {
        [DataMember]
        public string Tenlinhvuc;
        [DataMember]
        public int Malinhvuc;
        [DataMember]
        public string Tenphanloai;
        [DataMember]
        public int Maphanloai;
        [DataMember]
        public string Ten;
        [DataMember]
        public string Lng;
        [DataMember]
        public string Lat;
        [DataMember]
        public string Diachi;
        [DataMember]
        public string Quan;
        [DataMember]
        public string Thanhpho;
        [DataMember]
        public string Lienlac;
        [DataMember]
        public string Avatar;
        [DataMember]
        public int Trangthai;

    }
}
